Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> input:focus { background-color: yellow; } </style> </head> <body> <form action="http://www.w3schools.com/css/form_action.asp" method="get"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="Submit"> </form> <p><b>Note:</b> IE8 supports the :focus pseudo-class only if a !DOCTYPE is specified.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_link_focus by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:38 GMT --> </html>
Result:
Try it Yourself - © w3schools.com